const fetchReducer = (state = {}, action = {}) => {
  const { type, payload } = action;
    	console.log(type);
  switch (type) {
    case "FETCH_DATA_START":
		  return Object.assign({}, state, {status: "取得数据中..."});
    case "FETCH_DATA_FINISH":
		  return Object.assign({}, state, {status: "数据取得完成", list: payload});
    default: 
    	return state;
  }
};

export default fetchReducer;